package com.hsc.yalebao.adapter;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap.Config;
import android.os.Handler;
import android.os.Message;
import android.text.Html;
import android.text.Spanned;
import android.text.method.LinkMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.bumptech.glide.DrawableRequestBuilder;
import com.bumptech.glide.DrawableTypeRequest;
import com.bumptech.glide.Glide;
import com.bumptech.glide.RequestManager;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilder;
import com.facebook.drawee.controller.AbstractDraweeController;
import com.facebook.drawee.view.SimpleDraweeView;
import com.hsc.yalebao.base.CustomApplication;
import com.hsc.yalebao.http.AppConstants;
import com.hsc.yalebao.model.ChatMsgEntity;
import com.hsc.yalebao.model.UserBaseBean;
import com.hsc.yalebao.tabIndex.RoomPrimaryActivity;
import com.hsc.yalebao.tools.DateUtil;
import com.hsc.yalebao.weight.LogUtils;
import com.hsc.yalebao.weight.RoundImageView;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.DisplayImageOptions.Builder;
import com.nostra13.universalimageloader.core.assist.ImageSize;
import java.io.PrintStream;
import java.util.List;

public class GroupChatMsgViewAdpater extends BaseAdapter
{
  private static final String TAG = GroupChatMsgViewAdpater.class.getSimpleName();
  private int colorBlack;
  private Context context;
  int count = 0;
  public List<ChatMsgEntity> data;
  Handler delayHandler;
  private long lastSendTime;
  private ImageSize mImageSize;
  private LayoutInflater mInflater;
  private Handler mItemClickHandler;
  private DisplayImageOptions options;
  private RoomPrimaryActivity roomPrimaryActivity;
  ViewHolder viewHolder = null;

  public GroupChatMsgViewAdpater(Context paramContext, List<ChatMsgEntity> paramList, Handler paramHandler)
  {
    this.context = paramContext;
    this.data = paramList;
    this.mItemClickHandler = paramHandler;
    this.mInflater = LayoutInflater.from(paramContext);
    this.mImageSize = new ImageSize(400, 200);
    this.options = new DisplayImageOptions.Builder().cacheInMemory(true).cacheOnDisk(true).resetViewBeforeLoading(true).showImageOnFail(0).bitmapConfig(Bitmap.Config.RGB_565).build();
    this.colorBlack = paramContext.getResources().getColor(2131165335);
    this.delayHandler = new Handler();
  }

  public int getCount()
  {
    return this.count;
  }

  public Object getItem(int paramInt)
  {
    return this.data.get(paramInt);
  }

  public long getItemId(int paramInt)
  {
    return paramInt;
  }

  public int getItemViewType(int paramInt)
  {
    ChatMsgEntity localChatMsgEntity = (ChatMsgEntity)this.data.get(paramInt);
    int i = localChatMsgEntity.isComMsg();
    if ("1".equals(localChatMsgEntity.getMessagetype()))
      if (i != 0);
    do
    {
      return 0;
      return 1;
      if ("2".equals(localChatMsgEntity.getMessagetype()))
      {
        if (i == 0)
          return 4;
        return 5;
      }
      if ("3".equals(localChatMsgEntity.getMessagetype()))
      {
        if (i == 0)
          return 2;
        return 3;
      }
      if ("4".equals(localChatMsgEntity.getMessagetype()))
        return 6;
      if ("5".equals(localChatMsgEntity.getMessagetype()))
        return 7;
      if ("6".equals(localChatMsgEntity.getMessagetype()))
        return 8;
      if ("9".equals(localChatMsgEntity.getMessagetype()))
        return 9;
      if ("10".equals(localChatMsgEntity.getMessagetype()))
        return 10;
    }
    while (!"11".equals(localChatMsgEntity.getMessagetype()));
    return 11;
  }

  public View getView(final int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    ChatMsgEntity localChatMsgEntity = (ChatMsgEntity)this.data.get(paramInt);
    if (localChatMsgEntity == null)
      return paramView;
    int i = localChatMsgEntity.isComMsg();
    localChatMsgEntity.getMessagetype();
    String str1 = localChatMsgEntity.getSendtime();
    String str2 = localChatMsgEntity.getNickname();
    String str3 = localChatMsgEntity.getPicurl();
    String str4 = localChatMsgEntity.getBody();
    String str5 = localChatMsgEntity.getUsergrade();
    int j = localChatMsgEntity.getIsSendMsg();
    int k = localChatMsgEntity.getIsSendMsgRepeat();
    int m = localChatMsgEntity.getIsSendMsgRepeatSucceed();
    if (paramView == null)
      switch (getItemViewType(paramInt))
      {
      default:
        ViewHolder localViewHolder = this.viewHolder;
        paramView.setTag(localViewHolder);
        label176: switch (getItemViewType(paramInt))
        {
        case 9:
        default:
        case 0:
        case 1:
        case 2:
        case 3:
        case 4:
        case 5:
        case 6:
        case 10:
        case 7:
        case 8:
        case 11:
        }
        break;
      case 0:
      case 1:
      case 2:
      case 3:
      case 4:
      case 5:
      case 6:
      case 7:
      case 8:
      case 9:
      case 10:
      case 11:
      }
    while (true)
    {
      return paramView;
      paramView = this.mInflater.inflate(2130903108, null);
      this.viewHolder = new ViewHolder();
      this.viewHolder.tvSendTime = ((TextView)paramView.findViewById(2131100042));
      if (i == 0)
        this.viewHolder.tvUserName = ((TextView)paramView.findViewById(2131100044));
      this.viewHolder.img_dengji = ((ImageView)paramView.findViewById(2131100045));
      this.viewHolder.txt_msg = ((TextView)paramView.findViewById(2131100046));
      this.viewHolder.img_photo = ((RoundImageView)paramView.findViewById(2131100043));
      this.viewHolder.isComMsg = i;
      break;
      paramView = this.mInflater.inflate(2130903110, null);
      this.viewHolder = new ViewHolder();
      this.viewHolder.img_dengji = ((ImageView)paramView.findViewById(2131100045));
      this.viewHolder.tvSendTime = ((TextView)paramView.findViewById(2131100042));
      this.viewHolder.tvUserName = ((TextView)paramView.findViewById(2131100044));
      this.viewHolder.txt_msg = ((TextView)paramView.findViewById(2131100046));
      this.viewHolder.img_photo = ((RoundImageView)paramView.findViewById(2131100043));
      this.viewHolder.isComMsg = i;
      this.viewHolder.iv_send_repeat = ((ImageView)paramView.findViewById(2131100049));
      this.viewHolder.progressBar1 = ((ProgressBar)paramView.findViewById(2131100048));
      break;
      paramView = this.mInflater.inflate(2130903108, null);
      this.viewHolder = new ViewHolder();
      this.viewHolder.tvSendTime = ((TextView)paramView.findViewById(2131100042));
      this.viewHolder.tvUserName = ((TextView)paramView.findViewById(2131100044));
      this.viewHolder.img_dengji = ((ImageView)paramView.findViewById(2131100045));
      this.viewHolder.txt_msg = ((TextView)paramView.findViewById(2131100046));
      this.viewHolder.img_photo = ((RoundImageView)paramView.findViewById(2131100043));
      this.viewHolder.isComMsg = i;
      this.viewHolder.iv_gif = ((SimpleDraweeView)paramView.findViewById(2131100047));
      break;
      paramView = this.mInflater.inflate(2130903110, null);
      this.viewHolder = new ViewHolder();
      this.viewHolder.img_dengji = ((ImageView)paramView.findViewById(2131100045));
      this.viewHolder.tvSendTime = ((TextView)paramView.findViewById(2131100042));
      this.viewHolder.txt_msg = ((TextView)paramView.findViewById(2131100046));
      this.viewHolder.img_photo = ((RoundImageView)paramView.findViewById(2131100043));
      this.viewHolder.isComMsg = i;
      this.viewHolder.iv_gif = ((SimpleDraweeView)paramView.findViewById(2131100047));
      this.viewHolder.iv_send_repeat = ((ImageView)paramView.findViewById(2131100049));
      this.viewHolder.progressBar1 = ((ProgressBar)paramView.findViewById(2131100048));
      break;
      paramView = this.mInflater.inflate(2130903181, null);
      this.viewHolder = new ViewHolder();
      this.viewHolder.img_dengji = ((ImageView)paramView.findViewById(2131100045));
      if (i == 0)
        this.viewHolder.tvUserName = ((TextView)paramView.findViewById(2131100044));
      this.viewHolder.ll_touzhu = ((LinearLayout)paramView.findViewById(2131100242));
      this.viewHolder.img_photo = ((RoundImageView)paramView.findViewById(2131100043));
      this.viewHolder.txt_qihao = ((TextView)paramView.findViewById(2131100243));
      this.viewHolder.txt_type = ((TextView)paramView.findViewById(2131100244));
      this.viewHolder.txt_jine = ((TextView)paramView.findViewById(2131100245));
      this.viewHolder.isComMsg = i;
      this.viewHolder.tvSendTime = ((TextView)paramView.findViewById(2131100042));
      break;
      paramView = this.mInflater.inflate(2130903182, null);
      this.viewHolder = new ViewHolder();
      this.viewHolder.img_dengji = ((ImageView)paramView.findViewById(2131100045));
      this.viewHolder.ll_touzhu = ((LinearLayout)paramView.findViewById(2131100242));
      this.viewHolder.tvUserName = ((TextView)paramView.findViewById(2131100044));
      this.viewHolder.img_photo = ((RoundImageView)paramView.findViewById(2131100043));
      this.viewHolder.txt_qihao = ((TextView)paramView.findViewById(2131100243));
      this.viewHolder.txt_type = ((TextView)paramView.findViewById(2131100244));
      this.viewHolder.txt_jine = ((TextView)paramView.findViewById(2131100245));
      this.viewHolder.isComMsg = i;
      this.viewHolder.tvSendTime = ((TextView)paramView.findViewById(2131100042));
      break;
      paramView = this.mInflater.inflate(2130903106, null);
      this.viewHolder = new ViewHolder();
      this.viewHolder.txt_msg_system = ((TextView)paramView.findViewById(2131100040));
      break;
      paramView = this.mInflater.inflate(2130903106, null);
      this.viewHolder = new ViewHolder();
      this.viewHolder.txt_msg_system = ((TextView)paramView.findViewById(2131100040));
      break;
      paramView = this.mInflater.inflate(2130903175, null);
      this.viewHolder = new ViewHolder();
      this.viewHolder.txt_system_remind_content = ((TextView)paramView.findViewById(2131100235));
      break;
      paramView = this.mInflater.inflate(2130903176, null);
      this.viewHolder = new ViewHolder();
      this.viewHolder.txt_system_remind_content = ((TextView)paramView.findViewById(2131100235));
      LogUtils.e(TAG, "IMsgViewType.IMVT_SYSTEM_MESSAGE");
      break;
      paramView = this.mInflater.inflate(2130903107, null);
      this.viewHolder = new ViewHolder();
      this.viewHolder.txt_msg_system = ((TextView)paramView.findViewById(2131100041));
      break;
      paramView = this.mInflater.inflate(2130903235, null);
      this.viewHolder = new ViewHolder();
      this.viewHolder.txt_msg_system = ((TextView)paramView.findViewById(2131100394));
      this.viewHolder.img_dengji = ((ImageView)paramView.findViewById(2131100045));
      break;
      this.viewHolder = ((ViewHolder)paramView.getTag());
      break label176;
      this.viewHolder.img_dengji.setVisibility(0);
      if ("4".equals(str5))
      {
        this.viewHolder.img_dengji.setImageResource(2130837855);
        label1459: this.viewHolder.tvUserName.setText(str2);
        if (str1 == null);
      }
      try
      {
        String str11 = DateUtil.intToString(Integer.parseInt(str1), "yyyy-MM-dd HH:mm");
        this.viewHolder.tvSendTime.setText(str11);
        if ((i == 0) && (str2 != null) && (this.viewHolder.tvUserName != null))
        {
          this.viewHolder.tvUserName.setText(str2);
          RoundImageView localRoundImageView3 = this.viewHolder.img_photo;
          View.OnClickListener local1 = new View.OnClickListener()
          {
            public void onClick(View paramAnonymousView)
            {
              LogUtils.i(GroupChatMsgViewAdpater.TAG, "头像被点击了:" + paramInt);
              if (CustomApplication.app.userBaseBean == null)
              {
                LogUtils.i(GroupChatMsgViewAdpater.TAG, "CustomApplication.app.userBaseBean == null");
                return;
              }
              String str = CustomApplication.app.userBaseBean.getIsRoomOwner();
              LogUtils.d(GroupChatMsgViewAdpater.TAG, "IsRoomOwner:" + str);
              if (str == null)
              {
                LogUtils.e(GroupChatMsgViewAdpater.TAG, "IsRoomOwner == null");
                return;
              }
              if ("0".equals(str))
              {
                LogUtils.e(GroupChatMsgViewAdpater.TAG, "当前用户不是管理员");
                return;
              }
              Message localMessage = Message.obtain();
              localMessage.what = 2;
              localMessage.obj = Integer.valueOf(paramInt);
              GroupChatMsgViewAdpater.this.mItemClickHandler.sendMessage(localMessage);
            }
          };
          localRoundImageView3.setOnClickListener(local1);
        }
        if ((1 == i) && (this.viewHolder.iv_send_repeat != null))
        {
          if (j == 0)
          {
            this.viewHolder.iv_send_repeat.setVisibility(0);
            this.viewHolder.progressBar1.setVisibility(0);
            if (k != 0)
              break label1986;
            this.viewHolder.progressBar1.setVisibility(0);
            if (m == 1)
              this.viewHolder.progressBar1.setVisibility(8);
            LogUtils.i(TAG, "聊天内容isSendMsg:" + j);
            ImageView localImageView2 = this.viewHolder.iv_send_repeat;
            View.OnClickListener local2 = new View.OnClickListener()
            {
              public void onClick(View paramAnonymousView)
              {
                System.out.println("重发被点击了:" + paramInt);
                Message localMessage = Message.obtain();
                localMessage.what = 3;
                localMessage.obj = Integer.valueOf(paramInt);
                GroupChatMsgViewAdpater.this.mItemClickHandler.sendMessage(localMessage);
              }
            };
            localImageView2.setOnClickListener(local2);
          }
        }
        else
        {
          this.viewHolder.txt_msg.setText(str4);
          Glide.with(this.context).load(AppConstants.BASE_URL_IMG + str3).diskCacheStrategy(DiskCacheStrategy.ALL).centerCrop().placeholder(2130838020).crossFade().into(this.viewHolder.img_photo);
          continue;
          if ("5".equals(str5))
          {
            this.viewHolder.img_dengji.setImageResource(2130837853);
            break label1459;
          }
          if ("6".equals(str5))
          {
            this.viewHolder.img_dengji.setImageResource(2130837854);
            break label1459;
          }
          if ("7".equals(str5))
          {
            this.viewHolder.img_dengji.setImageResource(2130837852);
            break label1459;
          }
          if ("8".equals(str5))
          {
            this.viewHolder.img_dengji.setImageResource(2130837857);
            break label1459;
          }
          if ("9".equals(str5))
          {
            this.viewHolder.img_dengji.setImageResource(2130837856);
            break label1459;
          }
          this.viewHolder.img_dengji.setVisibility(8);
        }
      }
      catch (NumberFormatException localNumberFormatException3)
      {
        while (true)
        {
          localNumberFormatException3.printStackTrace();
          continue;
          this.viewHolder.iv_send_repeat.setVisibility(8);
          this.viewHolder.progressBar1.setVisibility(8);
          continue;
          label1986: this.viewHolder.progressBar1.setVisibility(8);
        }
      }
      this.viewHolder.img_dengji.setVisibility(0);
      if ("4".equals(str5))
      {
        this.viewHolder.img_dengji.setImageResource(2130837855);
        label2035: System.out.println("表情内容");
        if (str1 == null);
      }
      try
      {
        String str10 = DateUtil.intToString(Integer.parseInt(str1), "yyyy-MM-dd HH:mm");
        this.viewHolder.tvSendTime.setText(str10);
        if ((i == 0) && (str2 != null) && (this.viewHolder.tvUserName != null))
        {
          this.viewHolder.tvUserName.setText(str2);
          RoundImageView localRoundImageView2 = this.viewHolder.img_photo;
          View.OnClickListener local3 = new View.OnClickListener()
          {
            public void onClick(View paramAnonymousView)
            {
              System.out.println("头像被点击了:" + paramInt);
              Message localMessage = Message.obtain();
              localMessage.what = 2;
              localMessage.obj = Integer.valueOf(paramInt);
              GroupChatMsgViewAdpater.this.mItemClickHandler.sendMessage(localMessage);
            }
          };
          localRoundImageView2.setOnClickListener(local3);
        }
        if ((1 == i) && (this.viewHolder.iv_send_repeat != null))
        {
          if (j == 0)
          {
            this.viewHolder.iv_send_repeat.setVisibility(0);
            this.viewHolder.progressBar1.setVisibility(0);
            if (k != 0)
              break label2616;
            this.viewHolder.progressBar1.setVisibility(0);
            if (m == 1)
              this.viewHolder.progressBar1.setVisibility(8);
            LogUtils.i(TAG, "聊天内容isSendMsg:" + j);
            ImageView localImageView1 = this.viewHolder.iv_send_repeat;
            View.OnClickListener local4 = new View.OnClickListener()
            {
              public void onClick(View paramAnonymousView)
              {
                System.out.println("重发被点击了:" + paramInt);
                Message localMessage = Message.obtain();
                localMessage.what = 3;
                localMessage.obj = Integer.valueOf(paramInt);
                GroupChatMsgViewAdpater.this.mItemClickHandler.sendMessage(localMessage);
              }
            };
            localImageView1.setOnClickListener(local4);
          }
        }
        else
        {
          this.viewHolder.iv_gif.setVisibility(0);
          this.viewHolder.txt_msg.setVisibility(8);
          AbstractDraweeController localAbstractDraweeController = ((PipelineDraweeControllerBuilder)Fresco.newDraweeControllerBuilder().setUri("asset:///" + str4).setAutoPlayAnimations(true)).build();
          this.viewHolder.iv_gif.setController(localAbstractDraweeController);
          System.out.println("设置了uriasset:///" + str4);
          Glide.with(this.context).load(AppConstants.BASE_URL_IMG + str3).diskCacheStrategy(DiskCacheStrategy.ALL).centerCrop().placeholder(2130838020).crossFade().into(this.viewHolder.img_photo);
          continue;
          if ("5".equals(str5))
          {
            this.viewHolder.img_dengji.setImageResource(2130837853);
            break label2035;
          }
          if ("6".equals(str5))
          {
            this.viewHolder.img_dengji.setImageResource(2130837854);
            break label2035;
          }
          if ("7".equals(str5))
          {
            this.viewHolder.img_dengji.setImageResource(2130837852);
            break label2035;
          }
          if ("8".equals(str5))
          {
            this.viewHolder.img_dengji.setImageResource(2130837857);
            break label2035;
          }
          if ("9".equals(str5))
          {
            this.viewHolder.img_dengji.setImageResource(2130837856);
            break label2035;
          }
          this.viewHolder.img_dengji.setVisibility(8);
        }
      }
      catch (NumberFormatException localNumberFormatException2)
      {
        while (true)
        {
          localNumberFormatException2.printStackTrace();
          continue;
          this.viewHolder.iv_send_repeat.setVisibility(8);
          this.viewHolder.progressBar1.setVisibility(8);
          continue;
          label2616: this.viewHolder.progressBar1.setVisibility(8);
        }
      }
      this.viewHolder.img_dengji.setVisibility(0);
      if ("4".equals(str5))
      {
        this.viewHolder.img_dengji.setImageResource(2130837855);
        label2665: this.viewHolder.tvUserName.setText(str2);
        LogUtils.d(TAG, "投注");
        if (str1 == null);
      }
      try
      {
        String str9 = DateUtil.intToString(Integer.parseInt(str1), "yyyy-MM-dd HH:mm");
        this.viewHolder.tvSendTime.setText(str9);
        if (str4 != null)
        {
          String[] arrayOfString6 = str4.split("@");
          String str6 = arrayOfString6[0];
          String str7 = arrayOfString6[1];
          String str8 = arrayOfString6[2];
          if ((str2 != null) && (i == 0))
            this.viewHolder.tvUserName.setText(str2);
          if (str6 != null)
            this.viewHolder.txt_qihao.setText(str6 + "期");
          if (str6 != null)
            this.viewHolder.txt_type.setText("投注类型：" + str7);
          if (str6 != null)
            this.viewHolder.txt_jine.setText("金额：" + str8 + "元宝");
        }
        if (this.viewHolder.ll_touzhu != null)
        {
          LinearLayout localLinearLayout = this.viewHolder.ll_touzhu;
          View.OnClickListener local5 = new View.OnClickListener()
          {
            public void onClick(View paramAnonymousView)
            {
              Message localMessage = Message.obtain();
              localMessage.what = 1;
              localMessage.obj = Integer.valueOf(paramInt);
              GroupChatMsgViewAdpater.this.mItemClickHandler.sendMessage(localMessage);
            }
          };
          localLinearLayout.setOnClickListener(local5);
        }
        if ((i == 0) && (str2 != null) && (this.viewHolder.tvUserName != null))
        {
          this.viewHolder.tvUserName.setText(str2);
          RoundImageView localRoundImageView1 = this.viewHolder.img_photo;
          View.OnClickListener local6 = new View.OnClickListener()
          {
            public void onClick(View paramAnonymousView)
            {
              LogUtils.i(GroupChatMsgViewAdpater.TAG, "头像被点击了:" + paramInt);
              if (CustomApplication.app.userBaseBean == null)
              {
                LogUtils.i(GroupChatMsgViewAdpater.TAG, "CustomApplication.app.userBaseBean == null");
                return;
              }
              String str = CustomApplication.app.userBaseBean.getIsRoomOwner();
              LogUtils.d(GroupChatMsgViewAdpater.TAG, "IsRoomOwner:" + str);
              if (str == null)
              {
                LogUtils.e(GroupChatMsgViewAdpater.TAG, "IsRoomOwner == null");
                return;
              }
              if ("0".equals(str))
              {
                LogUtils.e(GroupChatMsgViewAdpater.TAG, "当前用户不是管理员");
                return;
              }
              Message localMessage = Message.obtain();
              localMessage.what = 2;
              localMessage.obj = Integer.valueOf(paramInt);
              GroupChatMsgViewAdpater.this.mItemClickHandler.sendMessage(localMessage);
            }
          };
          localRoundImageView1.setOnClickListener(local6);
        }
        Glide.with(this.context).load(AppConstants.BASE_URL_IMG + str3).diskCacheStrategy(DiskCacheStrategy.ALL).centerCrop().placeholder(2130838020).crossFade().into(this.viewHolder.img_photo);
        continue;
        if ("5".equals(str5))
        {
          this.viewHolder.img_dengji.setImageResource(2130837853);
          break label2665;
        }
        if ("6".equals(str5))
        {
          this.viewHolder.img_dengji.setImageResource(2130837854);
          break label2665;
        }
        if ("7".equals(str5))
        {
          this.viewHolder.img_dengji.setImageResource(2130837852);
          break label2665;
        }
        if ("8".equals(str5))
        {
          this.viewHolder.img_dengji.setImageResource(2130837857);
          break label2665;
        }
        if ("9".equals(str5))
        {
          this.viewHolder.img_dengji.setImageResource(2130837856);
          break label2665;
        }
        this.viewHolder.img_dengji.setVisibility(8);
      }
      catch (NumberFormatException localNumberFormatException1)
      {
        while (true)
          localNumberFormatException1.printStackTrace();
      }
      String[] arrayOfString2 = str4.trim().split(":");
      LogUtils.i(TAG, "splitTemp.length:" + arrayOfString2.length);
      if (arrayOfString2.length == 1)
      {
        LogUtils.i(TAG, "60s提示");
        String[] arrayOfString5 = str4.trim().split("】");
        if (arrayOfString5.length == 2)
        {
          Spanned localSpanned3 = Html.fromHtml(new StringBuilder("<font color='#01896F'>").append(arrayOfString5[0]).append("】</font>").toString() + "<font color='#333333'>  " + arrayOfString5[1] + "</font>");
          this.viewHolder.txt_msg_system.setText(localSpanned3);
        }
        else
        {
          this.viewHolder.txt_msg_system.setText(str4);
          this.viewHolder.txt_msg_system.setTextColor(this.colorBlack);
        }
      }
      else
      {
        LogUtils.i(TAG, "开奖结果提示");
        String[] arrayOfString3 = str4.trim().split("】");
        if (arrayOfString3.length == 2)
        {
          String[] arrayOfString4 = arrayOfString3[1].split("]:");
          if (arrayOfString4.length == 2)
          {
            Spanned localSpanned2 = Html.fromHtml(new StringBuilder(String.valueOf(new StringBuilder("<font color='#01896F'>").append(arrayOfString3[0]).append("】</font>").toString())).append("<font color='#333333'>  ").append(arrayOfString4[0]).append("]:</font>").toString() + "<font color='#01896F'>  " + arrayOfString4[1] + "</font>");
            this.viewHolder.txt_msg_system.setText(localSpanned2);
            this.viewHolder.txt_msg_system.setMovementMethod(LinkMovementMethod.getInstance());
          }
          else
          {
            this.viewHolder.txt_msg_system.setText(str4);
            this.viewHolder.txt_msg_system.setTextColor(this.colorBlack);
          }
        }
        else
        {
          this.viewHolder.txt_msg_system.setText(str4);
          this.viewHolder.txt_msg_system.setTextColor(this.colorBlack);
          continue;
          this.viewHolder.txt_msg_system.setText(str4);
          this.viewHolder.txt_msg_system.setTextColor(this.colorBlack);
          continue;
          this.viewHolder.txt_system_remind_content.setText(str4);
          String[] arrayOfString1 = str4.trim().split("】");
          LogUtils.d(TAG, "系统提示(左边带头像的)split0.length:" + arrayOfString1.length);
          if (arrayOfString1.length == 1)
          {
            this.viewHolder.txt_system_remind_content.setText(str4);
            this.viewHolder.txt_system_remind_content.setTextColor(this.colorBlack);
          }
          else
          {
            Spanned localSpanned1 = Html.fromHtml(new StringBuilder("<font color='#333333'>").append(arrayOfString1[0]).append("】</font>").toString() + "<font color='#333333'>  " + arrayOfString1[1] + "</font>");
            this.viewHolder.txt_system_remind_content.setText(localSpanned1);
            this.viewHolder.txt_system_remind_content.setMovementMethod(LinkMovementMethod.getInstance());
            continue;
            this.viewHolder.txt_msg_system.setText(str2);
            this.viewHolder.img_dengji.setVisibility(0);
            if ("4".equals(str5))
              Glide.with(this.context).load(Integer.valueOf(2130837861)).centerCrop().fitCenter().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(this.viewHolder.img_dengji);
            else if ("5".equals(str5))
              Glide.with(this.context).load(Integer.valueOf(2130837859)).centerCrop().fitCenter().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(this.viewHolder.img_dengji);
            else if ("6".equals(str5))
              Glide.with(this.context).load(Integer.valueOf(2130837860)).centerCrop().fitCenter().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(this.viewHolder.img_dengji);
            else if ("7".equals(str5))
              Glide.with(this.context).load(Integer.valueOf(2130837631)).centerCrop().fitCenter().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(this.viewHolder.img_dengji);
            else if ("8".equals(str5))
              Glide.with(this.context).load(Integer.valueOf(2130838157)).centerCrop().fitCenter().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(this.viewHolder.img_dengji);
            else if ("9".equals(str5))
              Glide.with(this.context).load(Integer.valueOf(2130838149)).centerCrop().fitCenter().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(this.viewHolder.img_dengji);
            else
              this.viewHolder.img_dengji.setVisibility(8);
          }
        }
      }
    }
  }

  public int getViewTypeCount()
  {
    return 12;
  }

  public void setCount(int paramInt)
  {
    this.count = paramInt;
  }

  public void setData(List<ChatMsgEntity> paramList)
  {
    if (paramList != null)
      this.data = paramList;
  }

  public static abstract interface IMsgViewType
  {
    public static final int IMVT_CHAT_RECEIVER = 0;
    public static final int IMVT_CHAT_SEND = 1;
    public static final int IMVT_EMOJI_RECEIVER = 2;
    public static final int IMVT_EMOJI_SEND = 3;
    public static final int IMVT_SYSTEM = 7;
    public static final int IMVT_SYSTEM_MESSAGE = 9;
    public static final int IMVT_SYSTEM_MESSAGE_WELCOME = 11;
    public static final int IMVT_SYSTEM_MESSAGE_XIANZHI = 10;
    public static final int IMVT_SYSTEM_REMIND = 8;
    public static final int IMVT_TOUZHU_RECEIVER = 4;
    public static final int IMVT_TOUZHU_REMIND = 6;
    public static final int IMVT_TOUZHU_SEND = 5;
  }

  static class ViewHolder
  {
    public ImageView img_dengji;
    public RoundImageView img_photo;
    public int isComMsg;
    public SimpleDraweeView iv_gif;
    public ImageView iv_send_repeat;
    LinearLayout ll_touzhu;
    public ProgressBar progressBar1;
    public TextView tvSendTime;
    public TextView tvUserName;
    public TextView txt_jine;
    public TextView txt_msg;
    public TextView txt_msg_system;
    public TextView txt_qihao;
    public TextView txt_system_remind_content;
    public TextView txt_type;
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.adapter.GroupChatMsgViewAdpater
 * JD-Core Version:    0.6.2
 */